package com.kuang.springCloud.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式写法   Dept dept = new Dept(); dept.setDeptno(1).setDname("链式");
public class Dept implements Serializable {
    private Long deptno;
    private String dname;
    private String db_source;

   /* public Dept(Long deptno) {
        this.deptno = deptno;
    }*/
}
